package com.ujiuye.dao;

import com.ujiuye.bean.ProductBean;

import java.util.List;

public class ProductDao extends BaseDao<ProductBean>{
    public List<ProductBean> setProduct(){
        String sql = "SELECT * FROM product";
        List<ProductBean> list = jSelect_Multi(sql, ProductBean.class);
        return list;
    }
    public ProductBean findProductByid(int pid){
        String sql ="SELECT * FROM product WHERE pid = ?";
        ProductBean product = jSelect_One(sql, ProductBean.class, pid);
        return product;
    }
}
